From: John Paul Wallington Date: Fri, 9 Jul 2004 17:16:59 +0000 (+0000) Subject: (reb-update-overlays): Distinguish between one and several matches in message. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~21694 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=613ce98d284ddf716c8832805be931d424005fcf;p=emacs.git (reb-update-overlays): Distinguish between one and several matches in message. --- diff --git a/lisp/emacs-lisp/re-builder.el b/lisp/emacs-lisp/re-builder.el index 83d3649006e..c6112c4a105 100644 --- a/lisp/emacs-lisp/re-builder.el +++ b/lisp/emacs-lisp/re-builder.el @@ -670,9 +670,10 @@ If SUBEXP is non-nil mark only the corresponding sub-expressions." (overlay-put overlay 'priority i))) (setq i (1+ i)))))) (let ((count (if subexp submatches matches))) - (message"%s %smatch(es)%s" + (message"%s %smatch%s%s" (if (= 0 count) "No" (int-to-string count)) (if subexp "subexpression " "") + (if (= 1 count) "" "es") (if (and reb-auto-match-limit (= reb-auto-match-limit count)) " (limit reached)" "")))